<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Size_Model extends CI_Model
{
    protected $_lang = '';
    protected $_table = "aw_size";
    
    function __construct() {
        parent::__construct();
    }
    public function initialise($lang)
    {
        if($lang!=''&&$lang!='vn')
            $this->_lang = '_'.$lang;
        else
            $this->_lang = '';
    }
   
    function getSizeById($colorId){
        $this->db->select('size_id, name');
        $this->db->where('size_id',$colorId);
        $this->db->order_by('name','ASC');
        $result = $this->db->get($this->_table)->result();
        if(!empty($result)) {
            return $result[0]->name;
        }
    }

	
}